import request from '@/utils/request'

// 查询会议信息列表
export function listMeetingInfo(query) {
  return request({
    url: '/partybuilding/MeetingInfo/list',
    method: 'get',
    params: query
  })
}

// 开启签到
export function meetingSignBegin(query) {
  return request({
    url: '/partybuilding/MeetingInfo/meetingSignBegin',
    method: 'post',
    params: query
  })
}

// 会议签到管理员代签
export function admSign(meetingId, query) {
  return request({
    url: '/partybuilding/MeetingInfo/admSign/'+meetingId,
    method: 'post',
    params: query
  })
}

// 会议签到
export function scanSign(meetingId) {
  return request({
    url: '/partybuilding/MeetingInfo/scanSign/'+meetingId,
    method: 'post'
  })
}

// 查询会议信息详细
export function getMeetingInfo(id) {
  return request({
    url: '/partybuilding/MeetingInfo/' + id,
    method: 'get'
  })
}

// 新增会议信息
export function addMeetingInfo(data) {
  return request({
    url: '/partybuilding/MeetingInfo/add',
    method: 'post',
    data: data
  })
}

// 修改会议信息
export function updateMeetingInfo(data) {
  return request({
    url: '/partybuilding/MeetingInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除会议信息
export function delMeetingInfo(id) {
  return request({
    url: '/partybuilding/MeetingInfo/remove/' + id,
    method: 'post'
  })
}
// 会议统计
export function meetingStat(query) {
  return request({
    url: '/partybuilding/MeetingInfo/meetingStat',
    method: 'get',
    params: query
  })
}